package com.member.po;

public class Page {
	//当前页
	private int pageNum;
	//页面大小
	private int size;
	//总条数
	private int amontRow;
	
	public int getTp(){
		int tp = amontRow/size;
		return amontRow%size==0?tp:tp+1;
	}
	
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getAmontRow() {
		return amontRow;
	}
	public void setAmontRow(int amontRow) {
		this.amontRow = amontRow;
	}
	
	public Page(){
		this.setPageNum(1);//默认是第一页
		this.setSize(5);			//每页默认大小5	
	}
	
	
	
	public String toString(){
		return this.getPageNum()+"--"+this.getSize()+"--"+this.getAmontRow();
	}
	
}
